package com.njtoyo.taxi.admin.rest.wrapper.platform.sensitive;

import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationObjectType;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationVerifyMethod;
import com.njtoyo.taxi.admin.mapper.secondary.enums.SystemSensitiveOperationVerifyMode;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class SensitiveUpdateWrapper {

    @ApiModelProperty(value = "验证对象")
    private SystemSensitiveOperationObjectType verifyObjectType;

    @ApiModelProperty(value = "授权对象信息id")
    private Long assignedVerifyObjectId;


    @ApiModelProperty(value = "验证模式")
    private SystemSensitiveOperationVerifyMode verifyMode;

    @ApiModelProperty(value = "验证方法。")
    private SystemSensitiveOperationVerifyMethod verifyMethod;


    @ApiModelProperty(value = "是否验证开启")
    @NotNull(message = "是否验证开启为空")
    private Boolean isVerifyOpen;

    @ApiModelProperty(value = "无需验证的管理员，格式：[1,2]")
    private Long[] ignoreAdmin;
}
